<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>爱选</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/static/css/ixuan.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/i.js"></script>
<body>
<div class="top">
<div class="header">
<div class="logo"><a href="http://localhost:8080"><img src="/static/images/logo.gif" alt="爱选" /><img
	src="/static/images/logotext.gif" alt="爱选" /></a></div>
<div class="headInfo">
<div class="myInfo">您好，{{ current_user.nickname }} ! <a href="/userhome/{{ current_user.uid }}">我的爱选</a> <a href="/account/"> 个人中心 </a>  <a href="/logout/">退出</a></div>
<div class="search"><input name="" type="text" class="seaIn" /><input
	name="" type="button" class="seaSo" value="搜索" /></div>
</div>
</div>
</div>
<div class="wrapper">
<div class="main">
<div class="myPage">
<ul>
	<li><a href="{{ sponserurl }}">我发起的投票</a></li>
	<li><a href="{{ urlbase }}0" class="nowlinke">我参与的投票</a></li>
</ul>
</div>
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	class="myVoteAll">
	<thead>
		<tr>
			<td>分类</td>
			<td>话题</td>
			<td>我的选择</td>
			<td>票数</td>
			<td>意见</td>
			<td>状态</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		{% for problem in fcproblems %}
                <tr>
                  <td>{% if problem.tname %}<a href="/type/{{ problem.tid }}/">{{ problem.tname }} </a>{% endif %}</td>
                  <td>{% if problem.title %}<a href="/problem/{{ problem.pid }}/">{{ problem.title }}</a> {% endif %}</td>
                  <td>{% if problem.rank == 1%} A {% else %} B {% endif %}</td>
                  <td>{% if problem.ccount >= 0 %}{{ problem.ccount }} {% endif %}</td>
                  <td>{% if problem.comentcount >=0 %}{{ problem.comentcount }} {% endif %}</td>
                  <td>{% if problem.pstatus == 0 %} 已过期 {% else %} 进行中 {% endif %}</td>
                  <td>{% if problem.pid %}<a href="/problem/{{ problem.pid }}/modify/"> 修改 </a>{% endif %}</td>
                </tr>
            {% endfor %}
	</tbody>
</table>
</div>
<div class="pages">
         {% if pages.leftmost_a >= 0 %}<a href="{{ urlbase }} {{ pages.leftmost_a }}"><img alt="第一页" src="/static/images/btn_pprev1.gif" /> </a>{% endif %}{% if pages.left_a>=0 %}<a href="{{ urlbase }} {{ pages.left_a }}"><img alt="上一页" src="/static/images/btn_prev1.gif" /> {% endif %}</a>
         <span id="pageNum">{% for page in pages.pages %}<a href="{{ urlbase }}{{ page.start }}"><strong>{{ page.number }}</strong></a> {% endfor %}</span>{% if pages.right_a %} <a href="{{ urlbase }}{{ pages.right_a }}"><img alt="下一页" src="/static/images/btn_next1.gif" /></a>{% endif %} {% if pages.rightmost_a %}<a href="{{ urlbase }}{{ pages.rightmost_a }}"><img alt="最末页" src="/static/images/btn_nnext1.gif" /></a>{% endif %} 
        </div>
    </div>
<div class="right">
<div class="loginIn"><i class="lt"></i><i class="rt"></i><i
	class="lb"></i><i class="rb"></i>
<div class="loginFo">
<h3>个人信息</h3>
<a href="#"><img src="{{ homeuser.image }}" class="userPic" alt="{{ homeuser.nickname }}" /></a>
{{ homeuser.nickname }}<br />
注册时间：{{ homeuser.createdate }}</div>
<br clear="all" />
</div>
<div class="h10"></div>
<a href="#"><img src=""/static/images/tounow.gif" alt="立即发起投票" /></a>
<div class="typeRight">
<ul>
	 {% for type in types %}
                <li class="{{type.class}}"><a href="/type/{{type.tid}}/"><span></span>{{type.name}}</a></li>
     {% endfor %}
</ul>
<br clear="all" />
</div>
<div class="hot">
<div class="hotTie">
<ul>
	<li id="month" class="hotN">本月热门投票</li>
	<li id="week">本周热门投票</li>
</ul>
</div>
<div class="hotCon">
<ol class="month">
                	{% for p in monthHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            	<ol class="week" style="display:none">
                	{% for p in weekHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
</div>
</div>
</div>
</div>
<div class="foot">
<div>关于我们 · 联系我们 · 意见反馈 © 2011 dXXXX.com, all rights reserved
ICP：34325434667</div>
</div>
</body>
</html>
